@extends('backend::layout')
@section('title',$page_title)
@section('content')
    <div class="row match-height">
        @component('backend::component.tab')
            @slot('tabs')
                <li class="nav-item">
                    <a class="nav-link active" data-toggle="tab"  href="#tab-user-base" role="tab">修改基本信息</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="tab"  href="#tab-user-detail" role="tab">修改详细信息</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link"   href="javascript:history.go(-1);"><i class="hcl hcl-back-o"></i>返回</a>
                </li>
            @endslot
            <div  class="tab-pane active" id="tab-user-base" role="tabpanel">
               @include('backend::user.edit_section.user_base')
            </div>
            <div  class="tab-pane" id="tab-user-detail" role="tabpanel">
                @include('backend::user.edit_section.user_detail')
            </div>
        @endcomponent
    </div>
@endsection
@push('scripts')
    <script type="text/javascript">
        layui.use(['interact'], function(){
            var selected = "{{$info->info->live_area ?? ''}}";
            if(selected !=''){
                selected = selected.split(',')
            }else{
                selected = [3,37,38];
            }
            $.get("{{route('b_Area_getArea')}}",function (response) {
                var interact = layui.interact;
                interact.render({
                    elem : '.post-area',
                    data : response,
                    name : 'live_area',
                    selected:selected,
                    hint : ['请选择省份','请选择城市','请选择县/区'],
                });
            });

        });
    </script>
@endpush